package org.cuit.epoch.seon;

import org.cuit.epoch.seon.processors.PaymentProcessor;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-19
 */
public class CreditCardPayment extends Payment {

    public CreditCardPayment(PaymentProcessor processor) {
        super(processor);
    }

    @Override
    public void pay(double amount) {
        System.out.println("Paying " + amount + " using Credit Card. ");
        processor.processPayment(amount);
    }
}
